package com.deep.deepenterpise.model.entity;

import com.deep.deepenterpise.common.DrGson;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * DR隐患子表
 *
 * @TableName dr_danger_history_slave
 */
@Data
public class DrDangerHistorySlave implements Serializable {
    /**
     *
     */
    private Integer drId;

    /**
     * 隐患单号
     */
    private String drDangerNum;

    /**
     * 隐患子单号
     */
    private String drDangerSlaveNum;

    /**
     * 隐患子单号签名
     */
    private String drDangerSlaveSign;

    /**
     * 复检人uuid
     */
    private String drPerson;

    /**
     * 隐患照片
     */
    private String drPhoto;

    /**
     * 审核人uuid
     */
    private String drReviewer;

    /**
     * 1是整顿完成2是待复检0是不合格3整顿中4待审核5待检查
     */
    private Integer drStatus;

    /**
     * 备注
     */
    private String drRemark;

    /**
     * 整顿完成的json
     */
    private String drRectify;

    /**
     * 审核时间
     */
    private Long drReviewTime;

    /**
     * 创建时间
     */
    private Long drCreateTime;

    private static final long serialVersionUID = 1L;

    public DrDangerHistorySlave() {
    }

    public DrDangerHistorySlave(String drDangerNum, String drDangerSlaveNum, Integer drStatus, Long drCreateTime,
                                String drRemark, List<String> drPhoto) {
        this.drDangerNum = drDangerNum;
        this.drDangerSlaveNum = drDangerSlaveNum;
        this.drStatus = drStatus;
        this.drCreateTime = drCreateTime;
        this.drRemark = drRemark;
        this.drPhoto = DrGson.toJSONString(drPhoto);
    }
}